package com.ctshk.rpc.tour.entity;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import com.ctshk.common.model.IBaseEntity;
import com.ctshk.rpc.tour.req.trip.FileReq;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 成本分摊默认
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_series_trip_default_cost")
@ApiModel(value="SeriesTripDefaultCost对象", description="成本分摊默认")
public class SeriesTripDefaultCost extends BaseEntity implements IBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行程ID")
    private Long tripId;

    @ApiModelProperty(value = "分摊名称")
    private String name;

    @ApiModelProperty(value = "团综合成本")
    private BigDecimal groupComprehensiveCost;

    @ApiModelProperty(value = "团费直客价")
    private BigDecimal groupCustomerPrice;

    @ApiModelProperty(value = "直客毛利率")
    private Double customerGrossProfitRate;

    @ApiModelProperty(value = "团费代理价")
    private BigDecimal groupAgencyPrice;

    @ApiModelProperty(value = "代理毛利率")
    private Double agencyGrossProfitRate;

    @ApiModelProperty(value = "代收费用")
    private BigDecimal collectionFee;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "报价单文件")
    private List<FileReq> quotationFileUrl;

    @ApiModelProperty(value = "档案备注")
    private String fileNotes;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
